/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.applicationManag.bean;

import com.koron.workflow.common.bean.BaseBean;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class AdministratorAppBean extends BaseBean {
    // 系统管理员
    @NotNull(message = "系统管理员不能为空")
    @Size(max = 50, message = "系统管理员最多能输入50个字符")
    private String administratorId;
    // 应用ID
    @NotNull(message = "应用ID不能为空")
    @Size(max = 50, message = "应用ID最多能输入50个字符")
    private String appId;
    // 设计权限 0:否，1:是
    @NotNull(message = "设计权限不能为空")
    @Range(min = 0, max = 1, message = "设计权限只能为0(否)或1(是)")
    private Integer designRight;
    // 监控权限 0:否，1:是
    @NotNull(message = "监控权限不能为空")
    @Range(min = 0, max = 1, message = "监控权限只能为0(否)或1(是)")
    private Integer watchRight;

    public String getAdministratorId() {
        return administratorId;
    }

    public void setAdministratorId(String administratorId) {
        this.administratorId = administratorId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getDesignRight() {
        return designRight;
    }

    public void setDesignRight(Integer designRight) {
        this.designRight = designRight;
    }

    public Integer getWatchRight() {
        return watchRight;
    }

    public void setWatchRight(Integer watchRight) {
        this.watchRight = watchRight;
    }
}
